<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/theme-chalk_index.css">
    <script src="js/vue@2_dist_vue.js"></script>
    <script src="js/axios.min.js"></script>
    <script src="js/element-ui@2.15.14_lib_index.js"></script>
</head>
<body>

<div id="app">
    <div style="width: 70%;">
        <el-menu>
            <el-submenu>
                <template slot="title">
                    <i class="el-icon-location"></i>
                    <span>导航一</span>
                </template>
                <el-menu-item index="1-1">选项1</el-menu-item>
                <el-menu-item index="1-2">选项2</el-menu-item>
            </el-submenu>

        </el-menu>
    </div>
</div>

<script>
    var app = new Vue({
        el: '#app',
        data: {
            menuList: [],
            routeList: [],
        },
        // 页面加载时
        created() {
            this.initPage();
        },

        methods: {
            initPage() {
                axios.get('http://localhost:8080/ssm_01/menus')
                    .then(response =>  this.menuList = response.data)
            },
            toRouteList(menuList) {

            },

        }
    })
</script>
</body>
</html>